package com.group.eams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group.eams.pojo.dto.AssetReturnQueryDto;
import com.group.eams.pojo.dto.FixedAssetDetailQueryDto;
import com.group.eams.pojo.entity.AssetBorrow;
import com.group.eams.pojo.entity.AssetReturn;
import com.group.eams.pojo.vo.AssetReturnListVo;
import com.group.eams.pojo.vo.FixedAssetDetailListVo;
import org.apache.ibatis.annotations.Param;

/**
* @author 恩哲欣
* @description 针对表【asset_return(资产归还表)】的数据库操作Mapper
* @createDate 2024-10-29 16:09:34
* @Entity com.group.eams.pojo.entity.AssetReturn
*/
public interface AssetReturnMapper extends BaseMapper<AssetReturn> {

    Page<AssetReturnListVo> assetReturnList(Page<AssetReturnListVo> page, @Param("assetReturnQueryDto") AssetReturnQueryDto assetReturnQueryDto);

    //查询借用资产详情
    Page<FixedAssetDetailListVo> findByQueryDto(Page<FixedAssetDetailListVo> page, @Param("fixedAssetDetailQueryDto") FixedAssetDetailQueryDto fixedAssetDetailQueryDto);

    //根据单号查询借用资产
    AssetReturn findByApplicationNum(@Param("applicationNum") String applicationNum);

    //根据单号进行删除
    int deleteByApplicationNum(@Param("applicationNum") String applicationNum);
}
